namespace QMVnSoft.ReportForms
{
    using QMVnSoft;
    using QMVnSoft.Controls;
    using QMVnSoft.DAL;
    using System;
    using System.ComponentModel;
    using System.Drawing;

    public class FormKQT031Lister : FormListLister
    {
        private IContainer components;

        public FormKQT031Lister()
        {
            this.InitializeComponent();
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            base.SuspendLayout();
            base.AutoScaleDimensions = new SizeF(6f, 13f);
            base.ClientSize = new Size(0x2bd, 0x10a);
            base.LocalFieldCount = 0;
            base.LocalFieldName = "IDKey";
            base.LocalTableName = "KQT031";
            base.Name = "FormKQT031Lister";
            base.OrderFieldNames = "IDKey";
            base.ShowMergeButton = false;
            this.Text = "Khai báo \"Lưu chuyển tiền tệ (Phương pháp gián tiếp)\"";
            base.ResumeLayout(false);
            base.PerformLayout();
        }

        public override bool OnAdd()
        {
            base.LocalFormEditor = new FormKQT031Editor();
            return base.OnAdd();
        }

        public override bool OnEdit()
        {
            base.LocalFormEditor = new FormKQT031Editor();
            return base.OnEdit();
        }

        public override void OnFillData()
        {
            object[][] objArray = new object[9][];
            objArray[0] = new object[] { "IDKey", "Số thứ tự", "N", AppInstance.TextNumericFormat.IntNumber };
            object[] objArray3 = new object[4];
            objArray3[0] = "Dien_Giai";
            objArray3[1] = "Tên chỉ ti\x00eau";
            objArray3[2] = "C";
            objArray[1] = objArray3;
            object[] objArray4 = new object[4];
            objArray4[0] = "Stt0";
            objArray4[1] = "Mã số";
            objArray4[2] = "C";
            objArray[2] = objArray4;
            objArray[3] = new object[] { "Stt_Bac", "Bậc", "N", AppInstance.TextNumericFormat.IntNumber };
            object[] objArray6 = new object[4];
            objArray6[0] = "Cong_Thuc";
            objArray6[1] = "Công thức";
            objArray6[2] = "C";
            objArray[4] = objArray6;
            object[] objArray7 = new object[4];
            objArray7[0] = "Tk_No";
            objArray7[1] = "Tài khoản nợ";
            objArray7[2] = "C";
            objArray[5] = objArray7;
            object[] objArray8 = new object[4];
            objArray8[0] = "Tk_Co";
            objArray8[1] = "Tài khoản có";
            objArray8[2] = "C";
            objArray[6] = objArray8;
            object[] objArray9 = new object[4];
            objArray9[0] = "In_Ck";
            objArray9[1] = "In";
            objArray9[2] = "L";
            objArray[7] = objArray9;
            object[] objArray10 = new object[4];
            objArray10[0] = "Bold";
            objArray10[1] = "In đậm";
            objArray10[2] = "L";
            objArray[8] = objArray10;
            base.ColNames = objArray;
            base.OnFillData();
        }

        public override void OnRefresh()
        {
            base.LocalDataSet = new ReportDeclarationDataAccess().KQT031GetDataSet();
            base.OnRefresh();
        }
    }
}

